Add bare-bones cross compilation support to cargo
authorAlex Crichton <alex@alexcrichton.com>
Thu, 10 Jul 2014 23:03:01 +0000 (16:03 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Thu, 10 Jul 2014 23:03:01 +0000 (16:03 -0700)
commit1946c447cb991b396391d04e092be68f2f03f515
tree3e6b4014e3af3e0f86cd66ee459613a01f60b106
parent0355cb6584ca416cc64f9a5fd66148049c7dafd4
Add bare-bones cross compilation support to cargo

This adds a new flag, --target, to the `cargo-build` command. This flag will
indicate that all output should be scoped under the `$triple` directory inside
of the output `target` directory. The compiler is invoked with `--target
$triple` and all custom build commands are passed `TRIPLE` if one is provided.
src/bin/cargo-build.rs
src/bin/cargo-git-checkout.rs
src/bin/cargo-test.rs
src/cargo/ops/cargo_compile.rs
src/cargo/ops/cargo_rustc.rs
src/cargo/util/config.rs